<%--
	author:chengd
	time:2012/5/13 20:56:44
--%>



<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@ taglib uri="/WEB-INF/tags/CommonFunction.tld" prefix="cfn" %>
<%@include file="/commons/include/html_doctype.html"%>
<html>
<head>
	<title>添加</title>
	<%@include file="/commons/include/add.jsp" %>
    <script type="text/javascript"
	src="${ctx}/js/calendar/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="${ctx}/js/calendar/date.js"></script>
	<script type="text/javascript">
$(function(){
	
	jQuery("#dataForm").validate(
	{
		rules: {
			plan_sn : {
				required: true
			},
			seq_id : {
				required: true
			},
			dep_code : {
				required: true
			},
			pro_code : {
				required: true
			},
			complated_date : {
				required: true
			},
			complated_quantity : {
				required: true,
				number : true,
				min : 1
			},
			mat_quantity : {
				required: true,
				number : true,
				min : 1
			},
			goods_sn : {
				required: true
			}
		},
		messages: {
		},
		submitHandler:function(form)
		{
			jQuery(form).ajaxSubmit(_options);
		}
	});
	selectDateMonth($("#acc_period_panel"), $("#acc_period"));
});
_callback = function() {
	location.href = ctx + "/manage/sell/getProSCH.htm";
}
validCallBack = function()
{
	//添加页面自定义校验

	return true;
};
	</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">生产进度跟进添加</td>
		<td>
			<div class="menuTool">
				<a class="save" id="dataFormSave" href="#">保存</a>
				<a class="back" href="getProSCH.htm">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="dataForm" method="post" action="addProSCH2.htm">
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr>
		<td class="form_title">投料单号：</td>
		<td class="form_input">${mat_sn}</td>
		<td class="form_title">核算期：</td>
		<td class="form_input"><input type="hidden" id="acc_period" name="acc_period" value="${fn:escapeXml(po.acc_period)}" /><div id="acc_period_panel"></div></td>
		<td class="form_title">安排生产日期：</td>
		<td class="form_input"><input type="text" id="pro_date" name="pro_date" value="" readonly="readonly" class="Wdate"　onFocus="WdatePicker({isShowWeek:true})" /></td>
	</tr>
	<tr>
		<td class="form_title">生产计划单号：</td>
		<td class="form_input"><input type="text" id="plan_sn" name="plan_sn" value="" /></td>
		<td class="form_title">生产部门代码：</td>
		<td class="form_input"><input type="text" id="dep_code" name="dep_code" value="" /></td>
		<td class="form_title">生产批次：</td>
		<td class="form_input"><input type="text" id="seq_id" name="seq_id" value="" /></td>
	</tr>
	<tr>
		<td class="form_title">要生产的产品代码：</td>
		<td class="form_input"><input type="text" id="pro_code" name="pro_code" value="" /></td>
		<td class="form_title">完成生产日期：</td>
		<td class="form_input"><input type="text" id="complated_date" name="complated_date" value="" readonly="readonly" class="Wdate"　onFocus="WdatePicker({isShowWeek:true})"　/></td>
		<td class="form_title">生产完成数量：</td>
		<td class="form_input"><input type="text" id="complated_quantity" name="complated_quantity" value="" /></td>
	</tr>
	<tr>
		<td class="form_title">投料品种代码（原材料）：</td>
		<td class="form_input"><input type="text" id="goods_sn" name="goods_sn" value="" /></td>
		<td class="form_title">投料数量：</td>
		<td class="form_input"><input type="text" id="mat_quantity" name="mat_quantity" value="" /></td>
		<td class="form_title"></td>
		<td class="form_input"></td>
	</tr>
</table>
</form>
</body>
</html>
